



'''
def say(n):
    print(n)

say(3)
# (lambda n:print(n))(5)
calc = lambda n:print(n)
calc(5)'''

'''
def say(n):
    print(n)
    for i in range(n):
        print(i)
say(3)

calc = lambda n: n**n#只能简单的三元运算
calc(5)'''


'''
res = filter(lambda  n:n>5,range(10))#这一组数据中过滤出你想要的
for i in res:
    print(i)'''


'''res = map(lambda  n:n*2,range(10))#[i*2 for i in range(10)]
res = [lambda i:i*2 for i in range(10)]
for i in res:
    print(i)
'''

import functools
res = functools.reduce(lambda  x,y:x+y,range(10))
print(res)#累加